﻿Chenxin.UI.HouseSendForm=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendWin',
	renderTo:'jqm_houseSendForm',
	createForm:function(){
		return Chenxin.FormCommon.houseSend('houseSend');
	},
	createComboList:function(){
		return [];
	},
	initEvent:function(){
		var _this=this;
		$('#houseSend_Save').live('click',function(){
			_this.save();
		});
		$('#houseSend_Cancle').live('click',function(){
			_this.hide();
		});
	},
    initComponent: function() {
        Chenxin.UI.HouseSendForm.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀
    */
Chenxin.FormCommon.houseSend=function(comboIdPrefix) {
return '<table class="tbl_f"><tbody><tr><td id="td_showHouseInfo" >正在查找类似房源……</td></tr><tr><td><div style="float:right; margin-right:25px;_margin-right:3px;*+margin-right:16px;"><a id="' + comboIdPrefix + '_Save" class="btn_n fl"  ><span>推送</span></a><a id="' + comboIdPrefix + '_Cancle" class="btn_n fl"  ><span>关闭</span></a></div></td></tr></tbody></table>'
}



// 推送房源——选择推送网站
Chenxin.UI.HouseSendType=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendType',
	renderTo:'jqm_houseSendType',
	createForm:function(){
		return Chenxin.FormCommon.houseSendType('houseSend');
	},
	createComboList:function(){
		return [];
	},
    initComponent: function() {
        Chenxin.UI.HouseSendType.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀 //<input type="button" id="' + comboIdPrefix + '_AJK" value="安居客" />
    */
Chenxin.FormCommon.houseSendType=function(comboIdPrefix) {
return '<table class="tbl_f"><tbody><tr><td id="SelSendType" ><a href="#" id="' + comboIdPrefix + '_AJK">安居客</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="' + comboIdPrefix + '_FYZX">房友在线</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="' + comboIdPrefix + '_SouFun">搜房帮</a>&nbsp;&nbsp;&nbsp;&nbsp<a href="#" id="' + comboIdPrefix + '_CityReHouse">易居臣信</a></td></tr></tbody></table>';
}



Chenxin.UI.HouseSendAJK_Tel=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendTypeAJK_Tel',
	renderTo:'jqm_houseSendAJK_Tel',
	createForm:function(){
		return Chenxin.FormCommon.houseSendAJK_Tel('houseSend');
	},
	createComboList:function(){
		return [];
	},
    initComponent: function() {
        Chenxin.UI.HouseSendAJK_Tel.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀 //<input type="button" id="' + comboIdPrefix + '_AJK" value="安居客" />
    */
Chenxin.FormCommon.houseSendAJK_Tel=function(comboIdPrefix) {
return '<table class="tbl_f"><tr><td> 请输入在安居客中注册的手机号码</td><td><input type="text" id="' + comboIdPrefix + 'txt_AJK_Tel" name="' + comboIdPrefix + 'txt_AJK_Tel" /></td></tr><tr><td>请输入房源标题：</td><td><textarea id="txtAJK_Title" name="txtAJK_Title" style="width:300px;"></textarea></td></tr><tr><td colspan="2"><a id="' + comboIdPrefix + '_AJK_Tel" class="btn_n fl"  ><span>确认</span></a></td></tr></table>'
}



//房友在线----确认登入用户id
Chenxin.UI.HouseSendSina_UserId=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendSina_UserId',
	renderTo:'jqm_houseSendSina_UserId',
	createForm:function(){
		return Chenxin.FormCommon.houseSendSina_UserId('houseSend');
	},
	createComboList:function(){
		return [];
	},
	initEvent:function(){
		var _this=this;
		$('#houseSend_Sina_UserId').live('click',function(){
			_this.save();
		});
	},
//	customerFormVal:function(model){
//	    if(!model.houseSendtxt_Sina_UserId)
//	    {
//	       alert('请输入用户ID');
//	       return false;
//	    }
//	    if(!model.txtSina_Title)
//	    {
//	       alert('请房源标题');
//	       return false;
//	    }
//	    return true;
//	},
    initComponent: function() {
        Chenxin.UI.HouseSendSina_UserId.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀 //<input type="button" id="' + comboIdPrefix + '_AJK" value="安居客" />
    */
Chenxin.FormCommon.houseSendSina_UserId=function(comboIdPrefix) {
return '<table class="tbl_f"><tr><td>请输入房友在线用户名；</td><td align="left"><input type="text" id="' + comboIdPrefix + 'txt_Sina_UserId" name="' + comboIdPrefix + 'txt_Sina_UserId" /></td><td></td></tr><tr><td>请填写房源标题：</td><td colspan="2" align="left" width="300"><textarea id="txtSina_Title" name="txtSina_Title" style="width:300px;"></textarea></td></tr><tr><td colspan="3" align="center"><a id="' + comboIdPrefix + '_Sina_UserId" class="btn_n fl"  ><span>推送</span></a></td></tr></table>';
}







//搜房网----确认登入用户id,,pwd,houseTitle
Chenxin.UI.HouseSendSouFun_UserInfo=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseSouFun.ashx',
	id:'houseSendSouFun_UserInfo',
	renderTo:'jqm_houseSendSouFun_UserInfo',
	createForm:function(){
		return Chenxin.FormCommon.houseSendSouFun_UserInfo('houseSend');
	},
	createComboList:function(){
		return [];
	},
	initEvent:function(){
		var _this=this;
		$('#houseSend_SouFun_UserInfo').live('click',function(){
			_this.save();
		});
	},
    initComponent: function() {
        Chenxin.UI.HouseSendSouFun_UserInfo.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源----搜房网
    */
Chenxin.FormCommon.houseSendSouFun_UserInfo=function(comboIdPrefix) {
return '<table class="tbl_f"><tr><td>请输入搜房帮用户名；</td><td align="left"><input type="text" id="' + comboIdPrefix + 'txt_SouFun_UserId" name="' + comboIdPrefix + 'txt_SouFun_UserId" /></td><td>密码：<input type="password" id="' + comboIdPrefix + 'txt_SouFun_UserPwd" name="' + comboIdPrefix + 'txt_SouFun_UserPwd" /></td></tr><tr><td>请填写房源标题：</td><td colspan="2" align="left" width="300"><textarea id="txtSouFun_Title" name="txtSouFun_Title" style="width:300px;"></textarea></td></tr><tr><td colspan="3" align="center"><a id="' + comboIdPrefix + '_SouFun_UserInfo" class="btn_n fl"  ><span>推送</span></a></td></tr></table>';
}




//房友在线----确认登入用户id
Chenxin.UI.HouseSendSina_UserId=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendSina_UserId',
	renderTo:'jqm_houseSendSina_UserId',
	createForm:function(){
		return Chenxin.FormCommon.houseSendSina_UserId('houseSend');
	},
	createComboList:function(){
		return [];
	},
	initEvent:function(){
		var _this=this;
		$('#houseSend_Sina_UserId').live('click',function(){
			_this.save();
		});
	},
//	customerFormVal:function(model){
//	    if(!model.houseSendtxt_Sina_UserId)
//	    {
//	       alert('请输入用户ID');
//	       return false;
//	    }
//	    if(!model.txtSina_Title)
//	    {
//	       alert('请房源标题');
//	       return false;
//	    }
//	    return true;
//	},
    initComponent: function() {
        Chenxin.UI.HouseSendSina_UserId.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀 /" 
    */
Chenxin.FormCommon.houseSendSina_UserId=function(comboIdPrefix) {
return '<table class="tbl_f"><tr><td>请输入房友在线用户名；</td><td align="left"><input type="text" id="' + comboIdPrefix + 'txt_Sina_UserId" name="' + comboIdPrefix + 'txt_Sina_UserId" /></td><td></td></tr><tr><td>请填写房源标题：</td><td colspan="2" align="left" width="300"><textarea id="txtSina_Title" name="txtSina_Title" style="width:300px;"></textarea></td></tr><tr><td colspan="3" align="center"><a id="' + comboIdPrefix + '_Sina_UserId" class="btn_n fl"  ><span>推送</span></a></td></tr></table>';
}


//CityReHouse网站----确认登入用户id
Chenxin.UI.HouseSendCityReHouse=Chenxin.extend(Chenxin.UI.FormCommon,{
	actionUrl:'service/SendHouseInfo.ashx',
	id:'houseSendCityReHouse',
	renderTo:'jqm_houseSendCityReHouse',
	createForm:function(){
		return Chenxin.FormCommon.houseSendCityReHouse('houseSend');
	},
	createComboList:function(){
	    
	   	 var sortCombo=new Chenxin.UI.Combo({
				containerId:'#selectKeyWord',
			    showMode:'multi',
				name:'selectKeyWord',
				items:[{ txt: '地铁沿线', val: '地铁沿线' },{ txt: '房东急售', val: '房东急售'},{ txt: '豪宅别墅', val: '豪宅别墅' },{ txt: '独家委托', val: '独家委托'},
				         { txt: '名校住宅', val: '名校住宅' },{ txt: '毛坯新房', val: '毛坯新房'},{ txt: '钥匙房', val: '钥匙房' },{ txt: '精致装修', val: '精致装修'},
				         { txt: '配套齐全', val: '配套齐全' },{ txt: '租房精选', val: '租房精选'},{ txt: '国际社区', val: '国际社区' },{ txt: '合租房', val: '合租房'},
				         { txt: '沿街旺铺', val: '沿街旺铺' },{ txt: '厂房仓库', val: '厂房仓库'},{ txt: '餐饮旺铺', val: '餐饮旺铺' },{ txt: '商住两用', val: '商住两用'}
				],
				addPleaseSelected:true,
				colNum:4,
				colWidth:150,
				onSelected:function(){
				
				}
			}); 
		return [sortCombo];
	},
	initEvent:function(){
		var _this=this;
		$('#houseSend_BtnCityReHouse').live('click',function(){
			_this.save();
		});
	},
//	customerFormVal:function(model){
//	    if(!model.houseSendtxt_CityReHouse)
//	    {
//	       alert('请输入用户ID');
//	       return false;
//	    }
//	    if(!model.txtCityReHouse_Title)
//	    {
//	       alert('请房源标题');
//	       return false;
//	    }
//	    return true;
//	},
    initComponent: function() {
        Chenxin.UI.HouseSendCityReHouse.superclass.initComponent.call(this);
	}
});

/**
    *@description 推送房源
    *@comboIdPrefix DIV下拉框和提交按钮前缀 //<input type="button" id="' + comboIdPrefix + '_AJK" value="安居客" />
    */
Chenxin.FormCommon.houseSendCityReHouse=function(comboIdPrefix) {
return '<table class="tbl_f"><tr><td>请输入CityReHouse后台用户名；</td><td align="left"><input type="text" id="' + comboIdPrefix + 'txt_CityReHouse" name="' + comboIdPrefix + 'txt_CityReHouse" />&nbsp;&nbsp;&nbsp;&nbsp;密码：<input type="password" id="txtpwd_CityReHouse" name="txtpwd_CityReHouse" style="width:110px;" /></td><td></td></tr><tr><td>选择关键字:   </td><td colspan="2" align="left" width="300"><div style="z-index: 909; margin-right: 5px;" id="selectKeyWord" class="SelectWrapSingle"></div></td></tr><tr><td>请填写房源标题：</td><td colspan="2" align="left" width="300"><textarea id="txtCityReHouse_Title" name="txtCityReHouse_Title" style="width:300px;"></textarea></td></tr><tr><td colspan="3" align="center"><a id="' + comboIdPrefix + '_BtnCityReHouse" class="btn_n fl"  ><span>推送</span></a></td></tr></table>';
}